package xin.sunzy.ssms.dao.intf;

import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;
import xin.sunzy.ssms.entity.po.Valid;

/**
 * Created by 17070725 on 2017/8/17.
 */
@Repository
public interface IValidDao {

    /**
     * 由主键获取对象
     * @return
     * @throws Exception
     */
    @Select("select * from valid where id = #{id}")
    Valid getValidByPrimaryKey(@Param(value = "id") Integer id) throws Exception;

    @Select("select * from valid where id = #{id}")
    Valid getValidById(int id) throws Exception;
}
